using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_PHIEUNHAPKHO: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_PHIEUNHAPKHOFields
		{
			Id,
			Sophieu,
			Ngaylap,
			Manhanvien,
			Machinhanh,
			Maphongban,
			Ghichu,
			Tongtien,
			Huy,
			Loaiphieu,
			Sohd,
			Chi,
			Manhacc,
			Printed,
            Vat,
            Vattype,
            Tongtiensauvat
		}
		#endregion

		#region Data Members

			long _id;
			string _sophieu;
			DateTime? _ngaylap;
			string _manhanvien;
			string _machinhanh;
			string _maphongban;
			string _ghichu;
			double? _tongtien;
			bool? _huy;
			byte? _loaiphieu;
			string _sohd;
			bool? _chi;
			string _manhacc;
			bool? _printed;
            double? _vat;
            int _vattype;
            double? _tongtiensauvat;

		#endregion

		#region Properties

            public double? Vat
            {
                get { return _vat; }
                set
                {
                    if (_vat != value)
                    {
                        _vat = value;
                    }
                }
            }

            public int Vattype
            {
                get { return _vattype; }
                set
                {
                    if (_vattype != value)
                    {
                        _vattype = value;
                    }
                }
            }
            public double? Tongtiensauvat
            {
                get { return _tongtiensauvat; }
                set
                {
                    if (_tongtiensauvat != value)
                    {
                        _tongtiensauvat = value;
                    }
                }
            }
		public long  Id
		{
			 get { return _id; }
			 set
			 {
				 if (_id != value)
				 {
					_id = value;
				 }
			 }
		}

		public string  Sophieu
		{
			 get { return _sophieu; }
			 set
			 {
				 if (_sophieu != value)
				 {
					_sophieu = value;
				 }
			 }
		}

		public DateTime?  Ngaylap
		{
			 get { return _ngaylap; }
			 set
			 {
				 if (_ngaylap != value)
				 {
					_ngaylap = value;
				 }
			 }
		}

		public string  Manhanvien
		{
			 get { return _manhanvien; }
			 set
			 {
				 if (_manhanvien != value)
				 {
					_manhanvien = value;
				 }
			 }
		}

		public string  Machinhanh
		{
			 get { return _machinhanh; }
			 set
			 {
				 if (_machinhanh != value)
				 {
					_machinhanh = value;
				 }
			 }
		}

		public string  Maphongban
		{
			 get { return _maphongban; }
			 set
			 {
				 if (_maphongban != value)
				 {
					_maphongban = value;
				 }
			 }
		}

		public string  Ghichu
		{
			 get { return _ghichu; }
			 set
			 {
				 if (_ghichu != value)
				 {
					_ghichu = value;
				 }
			 }
		}

		public double?  Tongtien
		{
			 get { return _tongtien; }
			 set
			 {
				 if (_tongtien != value)
				 {
					_tongtien = value;
				 }
			 }
		}

		public bool?  Huy
		{
			 get { return _huy; }
			 set
			 {
				 if (_huy != value)
				 {
					_huy = value;
				 }
			 }
		}

		public byte?  Loaiphieu
		{
			 get { return _loaiphieu; }
			 set
			 {
				 if (_loaiphieu != value)
				 {
					_loaiphieu = value;
				 }
			 }
		}

		public string  Sohd
		{
			 get { return _sohd; }
			 set
			 {
				 if (_sohd != value)
				 {
					_sohd = value;
				 }
			 }
		}

		public bool?  Chi
		{
			 get { return _chi; }
			 set
			 {
				 if (_chi != value)
				 {
					_chi = value;
				 }
			 }
		}

		public string  Manhacc
		{
			 get { return _manhacc; }
			 set
			 {
				 if (_manhacc != value)
				 {
					_manhacc = value;
				 }
			 }
		}

		public bool?  Printed
		{
			 get { return _printed; }
			 set
			 {
				 if (_printed != value)
				 {
					_printed = value;
				 }
			 }
		}

		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("Id", "Id"));
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("Sophieu", "Sophieu"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Sophieu", "Sophieu",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Manhanvien", "Manhanvien",30));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Machinhanh", "Machinhanh",30));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Maphongban", "Maphongban",30));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Ghichu", "Ghichu",100));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Sohd", "Sohd",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Manhacc", "Manhacc",10));
			
		}

		#endregion

	}
}
